﻿<UserControl x:Class="AutoLoL.Tabs.ModelTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:helix="clr-namespace:HelixToolkit;assembly=HelixToolkit"
             xmlns:converters="clr-namespace:AutoLoL.Converters"
             xmlns:controls="clr-namespace:AutoLoL.Controls"
             x:Name="RootElement"
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="800">
    <UserControl.Resources>
    </UserControl.Resources>
    <Grid>
        <DockPanel LastChildFill="True" Margin="10">
            <DockPanel LastChildFill="True">
                <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
                    <Image Height="16" Width="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/magnifier.png" />
                    <TextBlock Margin="5 0 0 0" Text="Filter:" VerticalAlignment="Center" />
                    <TextBox Width="150" Name="FilterTextBox" KeyDown="FilterTextBox_KeyDown" Margin="5 0 0 0" TextChanged="FilterTextBox_TextChanged" />
                </StackPanel>
                <ListBox Name="SkinSelectListBox" DisplayMemberPath="Name" Margin="0 7 10 0" Height="140" DockPanel.Dock="Bottom" SelectionChanged="SkinSelectListBox_SelectionChanged" />
                <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0 5 10 0" Width="210">
                    <controls:ChampionSelectControl x:Name="ChampionSelectControl" SelectionChanged="ChampionSelectControl_SelectionChanged" />
                </ScrollViewer>
            </DockPanel>
            <Expander Header="Info" IsExpanded="True" Margin="0 10 0 0" BorderBrush="DimGray" BorderThickness="1" DockPanel.Dock="Bottom">
                <StackPanel Margin="3">
                    <TextBlock TextWrapping="Wrap">
                        <Bold>Controls:</Bold><LineBreak />
                        <Bold>Move:</Bold> Middle Mouse Button or Shift + Right Mouse Button<LineBreak />
                        <Bold>Zoom:</Bold> Scrollwheel or Ctrl + Right Mouse Button<LineBreak />
                        <Bold>Rotate:</Bold> Right Mouse Button
                    </TextBlock>
                    <StackPanel Orientation="Horizontal" Margin="0 10 0 3">
                        <TextBlock Text="Model (skn):" Width="90" />
                        <TextBlock Name="SknFileNameTextBlock" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Material (dds):" Width="90" />
                        <TextBlock Name="DdsFileNameTextBlock" />
                    </StackPanel>
                </StackPanel>
            </Expander>
            <helix:HelixView3D x:Name="HelixView" Background="Gray" BorderBrush="DimGray" BorderThickness="1" CameraMode="Inspect" CameraRotationMode="VirtualTrackball">
                <helix:HelixView3D.Camera>
                    <PerspectiveCamera UpDirection="0,1,0" />
                </helix:HelixView3D.Camera>
                <ModelVisual3D>
                    <ModelVisual3D.Content>
                        <Model3DGroup>
                            <AmbientLight Color="#FF7F7F7F" />
                        </Model3DGroup>
                    </ModelVisual3D.Content>
                </ModelVisual3D>
                <ModelVisual3D>
                    <ModelVisual3D.Content>
                        <DirectionalLight Color="#FF3F3F3F" Direction="0,0,-1">
                            <DirectionalLight.Transform>
                                <TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
                            </DirectionalLight.Transform>
                        </DirectionalLight>
                    </ModelVisual3D.Content>
                </ModelVisual3D>
                <helix:Expander3D x:Name="HelixExpander3D" />
            </helix:HelixView3D>
        </DockPanel>
    </Grid>
</UserControl>
